<?php
/**
*
* Description
*
* @package  com_pmapi
* @author EF
* @link http://www.e-artspace.com/
* @copyright Copyright (c) 2014 E-Artspace. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* com_pmapi is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: $
*/
 
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access'); 


function displayButton($view, $image, $text) 
{
    $button  = '<div class="icon-wrapper">';
    $button .= '    <div class="icon">';
    $button .= '        <a href="'.JROUTE::_('index.php?option=com_pmapi&view='.$view).'">';
    $button .= '            <img src="templates/bluestork/images/header/'.$image.'" alt=""  />';
    $button .= '            <span>'.$text.'</span>';
    $button .= '        </a>';
    $button .= '    </div>';
    $button .= '</div>';
    echo $button;
}

?>
<?php if(!$this->contentNegotiationSupported):?>
<div>
  <p>Warning: EasyRDF lib not available. Content negotiation not supported.
      Only turtle RDF serialization format is available.</p>
  <p>See <a href="https://code.google.com/p/com-pmapi/wiki/Enabling_Content_Negotiation" target="_blank ">com_pmapi documentation</a>
       to know how to install EasyRdf library.</p>
</div>
<?php else:?>
<div>
  <p>EasyRdf library is available. Content negotiation is enabled.</p>
</div>
<?php endif?>

<div id="cpanel">
    <p>Please edit component options.</p>
</div>


